home *** CD-ROM | disk | FTP | other *** search
/ Essentials of Interactive Physiology / Essentials of Interactive Physiology.iso / mac / files / code / evaluation.js next >
Text File  |  2004-10-18  |  1KB  |  34 lines

  1. //******************
  2. function doPrintable(xsStuffToPrint) {
  3.     setTimeout('openPrintWindow("' + xsStuffToPrint + '")', 1000); 
  4. }
  5.  
  6. //******************
  7. function openPrintWindow(xsStuffToPrint) {
  8.     top.gsPrintable = gsPrintable + xsStuffToPrint;
  9.     gPrintWindow = open("printevaluation.html", "evaluation", "width=604,height=410,directories=no,location=no,menubar=yes,toolbar=no,status=no,scrollbars=yes,resizable=yes");
  10. }
  11.  
  12. //*********************
  13. function printTest() {
  14.     var i, viNumLines, vaLines;
  15.     var vsPrintStuff = window.opener.gsPrintable;
  16.     
  17.     vaLines = vsPrintStuff.split("#RETURN");
  18.     // /TYPE=a/TYPE=\\"a\\"/
  19.     viNumLines = vaLines.length;
  20.     document.writeln("<html>");
  21.     document.writeln("<HEAD><!-- saved from url=(0013)about:internet -->");
  22.     document.writeln("<title>" + vaLines[0] + "</title>");
  23.     document.writeln("</head>");
  24.     document.writeln("<body  bgColor = #FFFFFF >");
  25.     for(i=1; i < viNumLines; i++){
  26.             document.write(vaLines[i]);
  27.     }
  28.     
  29.     document.writeln("</body>");
  30.     document.writeln("</html>");
  31.     document.close(); 
  32.     window.opener.gsPrintable = "";
  33. }
  34.